<div class="container-fluid" ng-controller="AgentCreateSubordinateController">
    <form name="createSubordinateForm" novalidate="novalidate">
        <div class="form-group">
            <label>用户类型</label>
            <div class="radio">
                <label><input type="radio" id="usertype_agent" name="usertype" ng-model="createsubordinate.usertype" ng-checked="createsubordinate.usertype==1" value="1">代理</label>
               &nbsp;&nbsp;
                <label><input type="radio" id="usertype_agent" name="usertype" ng-model="createsubordinate.usertype" ng-checked="createsubordinate.usertype==2" value="2">用户</label>
            </div>
        </div>
        <div class="form-group">
            <label for="username">用户名</label>
            <input type="text" class="form-control" id="username" name="username"  ng-model="createsubordinate.username" placeholder="用户名" required>
            <div  ng-show="createSubordinateForm.username.$error.required" class="form-input-error">用户名必须填写！</div>
        </div>
        <div class="form-group" ng-show="createsubordinate.usertype==1">
            <label for="profit_ratio">返点</label>
            <select class="form-control" id="profit_ratio" name="profit_ratio" ng-model="createsubordinate.profit_ratio" ng-options="pr.name for pr in createsubordinate.prList" ng-required="createsubordinate.usertype==1">
                <option value="">选择返点</option>
            </select>
            <div  ng-show="createSubordinateForm.profit_ratio.$error.required" class="form-input-error">返点必须填写！</div>
        </div>
        <div>
            <p>注意：用户的密码默认为：88888888</p>
        </div>
        <button  class="btn btn-default"  ng-disabled="createSubordinateForm.$invalid"  ng-click="createsubordinate.create()">创建</button>
        <button  class="btn btn-warning"  ng-disabled="createSubordinateForm.$dirty"  ng-click="createsubordinate.reset()">重置</button>
    </form>
</div>